package com.phms.mapper;

import com.phms.pojo.Appointment;
import com.phms.pojo.AppointmentExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface AppointmentMapper {

    long countByExample(AppointmentExample example);


    int deleteByExample(AppointmentExample example);

    int deleteByPrimaryKey(Long id);


    int insert(Appointment record);


    int insertSelective(Appointment record);


    List<Appointment> selectByExample(AppointmentExample example);


    Appointment selectByPrimaryKey(Long id);


    int updateByExampleSelective(@Param("record") Appointment record, @Param("example") AppointmentExample example);


    int updateByExample(@Param("record") Appointment record, @Param("example") AppointmentExample example);


    int updateByPrimaryKeySelective(Appointment record);


    int updateByPrimaryKey(Appointment record);

    List<Appointment> getAllByLimit(Appointment appointment);

    int countAllByLimit(Appointment appointment);

    List<Map<String, Object>> getFreeTimeById(@Param("id") Long id, @Param("s") String s);
}